Skip to main content

acos

Type

function

Summary

Returns the arc cosine of a number, in radians.

Syntax

the acos of <number>
acos(<number>)

Description

Use the acos function to find the arc cosine of a number.

The arc cosine of number is an angle whose cosine is equal to number. In other words, acos is an inverse of the cos function.

    function acosInDegrees theMagnitude
return acos(theMagnitude) * 180 / pi

end acosInDegrees

If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.

Parameters

NameTypeDescription

number

A number between -1 and 1, or an expression that evaluates to such a number.

Examples

acos(-1)
acos(cos(.3))
acos(field "Opposite" + field "Sine")

keyword: inverse

constant: pi

control structure: function

function: cos

glossary: return, degree, math operation

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?